package cn.itcast.nems.base.dao.mapper;

import cn.itcast.nems.base.dao.entity.PreStudentInfo;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface PreStudentInfoMapper extends BaseMapper<PreStudentInfo> {

    /**
     * 根据学员ID获取scrm客户ID
     *
     * @param studentId 学员ID
     * @return 客户ID
     */
    Integer selectCustomerId(@Param("studentId") Integer studentId);

    /**
     * 查询报名链接
     * @param customerId 客户ID
     * @param clazzId 班级ID
     * @return 报名链接
     */
    String selectPayLink(@Param("customerId") Integer customerId, @Param("clazzId") Integer clazzId);
}
